/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2018
 */

package com.hzyb.shopMerchant.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "shop_merchant")
public class ShopMerchant  {


	//date formats


	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Length(max=50)
	private java.lang.String merchantSid;
	@Length(max=100)
	private java.lang.String merchantName;
	@Length(max=100)
	private java.lang.String merchantAddress;
	@Length(max=11)
	private java.lang.String merchantMobile;
	//columns END


	public ShopMerchant(){
	}

	public ShopMerchant(
			java.lang.String merchantSid
			){
		this.merchantSid = merchantSid;
	}



	public void setMerchantSid(java.lang.String value) {
		this.merchantSid = value;
	}

	@Id 
	@Column(name = "merchant_sid", unique = true, nullable = false, insertable = true, updatable = true, length = 50)
	public java.lang.String getMerchantSid() {
		return this.merchantSid;
	}

	@Column(name = "merchant_name", unique = false, nullable = true, insertable = true, updatable = true, length = 100)
	public java.lang.String getMerchantName() {
		return this.merchantName;
	}

	public void setMerchantName(java.lang.String value) {
		this.merchantName = value;
	}

	@Column(name = "merchant_address", unique = false, nullable = true, insertable = true, updatable = true, length = 100)
	public java.lang.String getMerchantAddress() {
		return this.merchantAddress;
	}

	public void setMerchantAddress(java.lang.String value) {
		this.merchantAddress = value;
	}

	@Column(name = "merchant_mobile", unique = false, nullable = true, insertable = true, updatable = true, length = 11)
	public java.lang.String getMerchantMobile() {
		return this.merchantMobile;
	}

	public void setMerchantMobile(java.lang.String value) {
		this.merchantMobile = value;
	}

}

